function Wallpaper()
{
    document.getElementById("loading").innerHTML = '<img src="http://s10.postimg.org/y1a6hfehl/loading.gif" height="16" width ="137">';
    img = new Array;
    img[0] = "https://wallpaperscraft.com/image/lina_slayer_dota_2_custom_set_94127_480x854.jpg";
    img[1] = "https://wallpaperscraft.com/image/balanar_night_stalker_dota_2_94268_480x854.jpg";
    img[2] = "https://wallpaperscraft.com/image/razor_lightning_revenant_dota_2_94307_480x854.jpg";
    img[3] = "https://wallpaperscraft.com/image/slark_dota_2_art_94146_480x854.jpg";
    img[4] = "https://wallpaperscraft.com/image/invoker_dota_2_art_94510_480x854.jpg";
    img[5] = "https://wallpaperscraft.com/image/dota_2_logo_art_shadow_94200_480x854.jpg";
    img[6] = "https://wallpaperscraft.com/image/mortred_dota_2_art_95311_480x854.jpg";
    img[7] = "https://wallpaperscraft.com/image/lucifer_doom_dota_2_93741_480x854.jpg";
    img[8] = "https://wallpaperscraft.com/image/slark_dota_2_art_95602_480x854.jpg";
    img[9] = "https://wallpaperscraft.com/image/dota_2_traxe_drow_ranger_art_milimalism_97328_480x854.jpg";
    img[10] = "https://wallpaperscraft.com/image/invoker_valve_quas_wex_dota_2_99571_480x854.jpg";
    img[11] = "https://wallpaperscraft.com/image/dota_2_art_logo_dark_94988_480x854.jpg";
    img[12] = "https://wallpaperscraft.com/image/coup_de_grace_dota_2_girl_art_93717_480x854.jpg";
    img[13] = "https://wallpaperscraft.com/image/amphibians_slark_slardar_dota_2_93737_480x854.jpg";
    img[] = "";
    img[] = "";
    img[] = "";
    Chooselink = Math.floor(14*Math.random());
  var imagePath = img[Chooselink];
  var imageTitle = "Dota 2 Wallpaper";                     // Set title of your choice.
  var folderName = "Dota 2 Wallpapers";                  // Set folder Name of your choice.
  var success = function() { alert("Successed!"); };           // Do something on success return.
  var error = function(message) { alert("Oopsie! You Need To Connect Data Connection."); };   // Do something on error return.

  wallpaper.setImage(imagePath, imageTitle, folderName, success, error);
  
  document.getElementById("preview").innerHTML = '<img src="'+img[Chooselink]+'" width ="200">';

}